<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const arr=[1,2,3]

    console.log(arr)

    const a=JSON.stringify(arr)     //转化成字符串数组
    console.log(a)
</script>
</body>
</html>